| name | value |
|---|---|
| partnerPersonTradeName | First GmbH |
| subscriberFamilyName | Firby |
| subscriberGivenName | Susan |
| subscriberEMailAddress | contact-admin@firstcontact.example.com |
| mailingList | first-gmbh-internal |
HTTP GET "/api/hs/office/persons?name=First+GmbH" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<tst-person_firbysusan>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "f726eb70-6779-41eb-a327-09e132a0cdd5",
"personType" : "LEGAL_PERSON",
"tradeName" : "First GmbH",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
} ]
In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.
HTTP GET "/api/hs/office/persons?name=Firby" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<tst-person_firbysusan>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "a0ada6a0-a026-4fd7-9596-252d9ba14f61",
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Susan",
"familyName" : "Firby"
} ]
In real scenarios there are most likely multiple results and you have to choose the right one.
HTTP GET "/api/hs/office/contacts?emailAddress=contact-admin@firstcontact.example.com" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<tst-person_firbysusan>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "57cefbf1-4b36-48b3-8400-2e027035af9a",
"caption" : "first contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@firstcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
} ]
In real scenarios there are most likely multiple results and you have to choose the right one.
HTTP POST "/api/hs/office/relations" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<tst-person_firbysusan>"` \
`# }` \
<<EOF
{
"type" : "SUBSCRIBER",
"mark" : "first-gmbh-internal",
"anchor.uuid" : "f726eb70-6779-41eb-a327-09e132a0cdd5", // Person: First GmbH
"holder.uuid" : "a0ada6a0-a026-4fd7-9596-252d9ba14f61", // Person: Susan Firby
"contact.uuid" : "57cefbf1-4b36-48b3-8400-2e027035af9a" // Contact: contact-admin@firstcontact.example.com
}
EOF
=> status: 403 FORBIDDEN
{
"timestamp" : "2026-08-10 01:37:55",
"path" : "",
"statusCode" : 403,
"statusPhrase" : "Forbidden",
"message" : "ERROR: [403] new mark \"first-gmbh-internal\" for relation-type SUBSCRIBER may only be introduced by a global admin"
}
generated on 2026-08-10 01:37:55 for branch